package dnl.util.ui.table;

import javax.swing.Action;
import javax.swing.JMenuItem;

/**
  * 
  * 
  * @author Daniel Or
  * @version 1.0
  */
public abstract class PopupMenuItem extends JMenuItem {

	/**
	 * Constructor for PopupMenuItem.
	 */
	public PopupMenuItem() {}

	/**
	 * Constructor for PopupMenuItem.
	 * @param a
	 */
	public PopupMenuItem(Action a) {
		super(a);
	}

	/**
	 * This method is called before the popup menu is shown. Each
	 * <code>PopupAction</code> can then decide if it should be enabled or
	 * disabled.  
	 * @param rw
	 */
	public abstract void setEnabled(RowData rw);
}
